package chess;

public class Square {
	private Piece _content;
	private int _file, _rank;

	public Square(int file, int rank, Piece content) {
		_file = file;
		_rank = rank;
		_content = content;
	}

        public Square(Square original) {
            _file = original._file;
            _rank = original._rank;
            _content = original._content;
        }

	public int file() {
		return _file;
	}

	public int rank() {
		return _rank;
	}

	public Piece piece() {
		return _content;
	}

	public void setPiece(Piece p) {
		_content = p;
	}

	public String toString() {
		return _content.toString();
	}
}
